package portal.util.config;

import java.io.IOException;
import java.util.Properties;

public class ConfigUtil extends Properties {
	
	private static final long serialVersionUID = 4498668648684293860L;
	
	private static ConfigUtil instance;
	
	private ConfigUtil() throws IOException {
		load(ConfigUtil.class.getResourceAsStream("/config.properties"));
	}
	
	public static ConfigUtil getInstance() {
		try {
			if (instance == null)
				instance = new ConfigUtil();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return instance;
	}
	
	public String get(String property) {
		return getProperty(property);
	}

}
